from config import BASE_HOST


class Tender():

    def __init__(self,sess):
        self.sess=sess

    def tender(self,id_v,amount_v):
        url=BASE_HOST+"/trust/trust/tender"

        data_v={"id":id_v,"depositCertificate":-1,"amount":amount_v}
        res1=self.sess.post(url=url,data=data_v)
        return res1

    def third_tender(self,url_t,data_t):
        res2=self.sess.post(url=url_t,data=data_t)
        return res2